#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import test_blueprint
from api.testResource.testResource import TestResource
from api.testResource.testOtherResource import TestOtherResource

api = Api(test_blueprint)

api.add_resource(TestResource, '/test/<test_id>', '/test', endpoint='Test')


@test_blueprint.route('/test/update/<test_id>', methods=['PUT'], endpoint='TestUpdate')
def update(test_id):
    return TestOtherResource.sensitive_update(test_id)
